﻿<%@ Page Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="UnRefundConfirm.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.InvoiceManage.UnRefundConfirm"
    Title="结算单确认" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <%--<div id="tabnav">
        <ul>
            <li class="active"><a href="UnRefundConfirm.aspx">未确认</a></li>
            <li><a href="RefundConfirm.aspx">已确认</a></li>
        </ul>
    </div>--%>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                采购医疗机构：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txthospitalname" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                结算单名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtInvoicePayName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                结算时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtInvoicePayTimeFrom" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                    Width="62px"></asp:TextBox>-<asp:TextBox ID="txtInvoicePayTimeTo" runat="server"
                                        onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" Width="62px"></asp:TextBox>
                            </td>
                            <td align="left">
                                <hz:HzButton ID="btnSelect" runat="server" Text="查  询" OnClick="btnSelect_Click"
                                    CssClass="searchbtn" Width="70px" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                发票号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtInvoiceid" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwrefund" class="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据">
        <Columns>
            <asp:TemplateField HeaderText=" " Visible="false">
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwrefund','addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <%--  <asp:CheckBox  name="bSelect" id="bSelect" value='<%#Eval("InvoicePaySerialID") %>'  
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwrefund','bSelect');"   runat="server" />--%>
                    <input type="checkbox" name="bSelect" id="bSelect" value='<%#Eval("InvoicePaySerialID")%>'
                        visible='<%# Eval("PayStatus").ToString()=="0"?true:false %>' onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwrefund','ctl00_ContentPlaceHolder1_gvwrefund_ctl02_bSelect');"
                        runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="HospitalName" HeaderText="采购医疗机构" ReadOnly="true" />
            <asp:BoundField DataField="Invoiceid" HeaderText="发票号" ReadOnly="true" />
            <asp:BoundField DataField="InvoicePayName" HeaderText="结算单名称" ReadOnly="true" />
            <asp:BoundField DataField="InvoicePayTime" HeaderText="结算时间" ReadOnly="true" DataFormatString="{0:yyyy-MM-dd}" />
            <asp:BoundField DataField="PayAmount" HeaderText="应付总额" ReadOnly="true" DataFormatString="{0:F2}" />
            <asp:BoundField DataField="ActualAmount" HeaderText="实付总额" DataFormatString="{0:F2}" />
            <asp:TemplateField HeaderText="单据状态" Visible="false">
                <ItemTemplate>
                    <%# Eval("PayStatus").ToString()=="0"?"未确认":"已确认" %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <a href='RefundDetail.aspx?ID=<%#Eval("InvoicePaySerialID") %>&Invoiceid=<%#Eval("Invoiceid") %>'>查看详情</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span>可通过结算单名称进入查看该结算单所包含的发票信息。</span></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="HzButton1" runat="server" OnClick="HzButton1_Click" CssClass="btn" Visible="false"
            ToolTip="确认结算单" Text="确  认" OnClientClick="return checkSelectedItems('ctl00_ContentPlaceHolder1_gvwrefund','请至少选择一条信息！') && confirm(' &nbsp; &nbsp;确认已结算？\n确认后不可恢复！');"
            OperateType="编辑" />
    </div>
</asp:Content>
